package com.cn.crmsystem.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.sql.Date;

@ApiModel(value = "（线索和客户）跟进基本数据实体(Follow_Up)")
public class Follow_Up implements Serializable {

  @Id
  @ApiModelProperty("主键 id （不用传值）")
  private Long id;

  @ApiModelProperty("跟进类型（0：线索）（1：客户）（不用传值）")
  private Long type;

  @ApiModelProperty( "线索（客户）数据id")
  private Long type_id;

  @ApiModelProperty( "创建数据人id（不用传值）")
  private Long create_id;

  @ApiModelProperty( "负责人id")
  private Long user_id;

  @ApiModelProperty( "联系人id")
  private Long contacts_id;

  @ApiModelProperty( "跟进形式(0:打电话)(1：发短信)(2：见面拜访)(3：活动)")
  private Long follow_type;

  @ApiModelProperty( "跟进时间")
  private Date time;

  @ApiModelProperty( "跟进记录")
  private String record;

  @ApiModelProperty( "下次联系时间")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private Date contact_time;

  @ApiModelProperty( "(删除状态（0：显示 1：隐藏）（不用传值）")
  private Long delete_state;

  @ApiModelProperty( "备注")
  private String remarks;


  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public long getType() {
    return type;
  }

  public void setType(long type) {
    this.type = type;
  }

  public long getType_id() {
    return type_id;
  }

  public void setType_id(long type_id) {
    this.type_id = type_id;
  }

  public long getCreate_id() {
    return create_id;
  }

  public void setCreate_id(long create_id) {
    this.create_id = create_id;
  }

  public long getUser_id() {
    return user_id;
  }

  public void setUser_id(long user_id) {
    this.user_id = user_id;
  }

  public long getContacts_id() {
    return contacts_id;
  }

  public void setContacts_id(long contacts_id) {
    this.contacts_id = contacts_id;
  }

  public long getFollow_type() {
    return follow_type;
  }

  public void setFollow_type(long follow_type) {
    this.follow_type = follow_type;
  }

  public Date getTime() {
    return time;
  }

  public void setTime(Date time) {
    this.time = time;
  }

  public String getRecord() {
    return record;
  }

  public void setRecord(String record) {
    this.record = record;
  }

  public Date getContact_time() {
    return contact_time;
  }

  public void setContact_time(Date contact_time) {
    this.contact_time = contact_time;
  }

  public long getDelete_state() {
    return delete_state;
  }

  public void setDelete_state(long delete_state) {
    this.delete_state = delete_state;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  @Override
  public String toString() {
    return "Follow_Up{" +
            "id=" + id +
            ", type=" + type +
            ", type_id=" + type_id +
            ", create_id=" + create_id +
            ", user_id=" + user_id +
            ", contacts_id=" + contacts_id +
            ", follow_type=" + follow_type +
            ", time=" + time +
            ", record='" + record + '\'' +
            ", contact_time=" + contact_time +
            ", delete_state=" + delete_state +
            ", remarks='" + remarks + '\'' +
            '}';
  }
}
